package com.wentao.mall.dao

import com.wentao.mall.api.Product
import org.springframework.data.jpa.repository.JpaRepository

interface ProductDao : JpaRepository<Product, Int> {
    fun findByMerchantId(merchantId: String): List<Product>
    fun findByCatagoryId(catagoryId: Int): List<Product>
}